package com.zx.feign.client.dto;

import java.io.Serializable;

/**
 * <p>
 * description: 用户信息服务间传输对象 <br>
 * create: 2024-02-25 16:05 <br>
 * </p>
 *
 * @author zhou  xun
 */
public record UserInfoDTO(Long id,
                          String name,
                          int age) implements Serializable {
    public static UserInfoDTO invalid() {
        return new UserInfoDTO(-1L, "invalid", 0);
    }
}

